// app.js 
App({ 
  onLaunch() { 
    wx.cloud.init({ 
      //把env替换成你自己的云开发环境id 
      env: 'yolov8env-5gnky8v3b93bf904', 
  }) 
    // 展示本地存储能力 
    const logs = wx.getStorageSync('logs') || [] 
    logs.unshift(Date.now()) 
    wx.setStorageSync('logs', logs) 
    // 登录 
    wx.login({ 
      success: res => { 
        // 发送 res.code 到后台换取 openId, sessionKey, unionId 
      } 
    }) 
    wx.getSystemInfo({
      success: (res) => {
        this.globalData.windowWidth = res.windowWidth
        this.globalData.statusBarHeight = res.statusBarHeight
        this.globalData.navBarHeight = 44 + res.statusBarHeight
      }
    })
    this.globalData.capsule = wx.getMenuButtonBoundingClientRect() //获取胶囊宽高及位置
  }, 


  globalData: { 
    userInfo: null ,
    capsule:null,
  }, 
  networkTimeout: { 
    "request": 1000000, 
    "connectSocket": 100000, 
    "uploadFile": 100000, 
    "downloadFile": 100000 
  }, 
}) 